import { Base } from "../../../../mixins/index";
import { userInfoAside } from "./userInfoAside";
import { userTemplate, userInfoTemplate } from "../html/index";
import "../css/user.less";
const getComponentData = (data) => {
  return data;
};
export const user = {
  moduleName: "User",
  moduleTemplate: userTemplate,
  router: {
    name: "User",
    path: "/user",
  },
  default() {
    return {
      name: "User",
      mixins: [Base],
      component: {
        UserInfoAside: userInfoAside,
        UserInfo: {
          moduleName: "UserInfo",
          moduleTemplate: userInfoTemplate,
          default() {
            return {
              name: "UserInfo",
              props: {
                userId: {
                  type: String,
                  default() {
                    return "";
                  },
                },
              },
              data() {
                return {};
              },
              created() {
                console.log(this.$props.userId);
              },
              methods: {},
            };
          },
        },
      },
      data() {
        return {
          userId: "1",
        };
      },
      created() {},
      mounted() {
        console.log(this.$route);
      },
      methods: {
        getComponentData,
      },
    };
  },
};
